<?php
	$form = new Form( array(
		"start_date" => array(
			"type" => "date",
			"data" => $date
		),
		"stop_date" => array(
			"type" => "date",
			"data" => $date
		),
		"image" => array(
			"type" => "upload",
		),
		"topic" => array(
			"type" => "text",
			"lang" => "th/en"
		),
		"detail" => array(
			"type" => "textarea",
			"RTE" => true,
			"lang" => "th/en"
		),
	));

	$form->add_action("add.php");

    $form->rain_display($tpl, "form");
?>